public class PersonTest {
    public static void main(String[] args) {

        //创建对象
        Person p=new Person();

        p.setName("超级飞侠");
        p.setAge(50);
        p.setGender("未知(自定)");

        System.out.println(p.getName());
        System.out.println(p.getAge());
        System.out.println(p.getGender());

        p.eat();
        p.sleep();
    }
}
